var ScrambledEggs;
(function (ScrambledEggs) {
    (function (Modules) {
        var Message = (function () {
            function Message() {
            }
            Message.prototype.initialize = function (gameState, onUpdate) {
                this._onUpdate = onUpdate;
            };
            Message.prototype.update = function (gameState, triggerSource) {
                if(gameState.State.Message == null) {
                    $("#message").hide();
                } else {
                    $("#message").html(gameState.State.Message).show();
                }
            };
            return Message;
        })();
        Modules.Message = Message;        
    })(ScrambledEggs.Modules || (ScrambledEggs.Modules = {}));
    var Modules = ScrambledEggs.Modules;
})(ScrambledEggs || (ScrambledEggs = {}));
